<?php
include "includes/comunes.php";
if (!function_exists('json_encode')) {
	require_once 'json/jsonwrapper_inner.php';
}
$q = strtolower($_POST["tipo"]);
if (!$q) return; //si no nos trae nada retornamos
$cadena = trim($q); //le asignamos a cadena $Q sin espacios
if($cadena==1):
?>
 
           <fieldset>
              <legend><b>Forma de Pago Contado</b></legend> 
               <table  width="100%">
                 <tr>
                      <td class="textotablamenuform"  width="10%">Entrega Efectivo</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="efectivo" name="efectivo" required value="" style="width:80%;">
               
                      </td>
					  <td class="textotablamenuform"  width="10%">Entrega Valores</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="valores" name="valores" required value="" style="width:80%;">
               
                      </td>
					  <td class="textotablamenuform"  width="10%">Total</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                         <input type="text" class="campo_form" autocomplete="on"  id="total" name="total" required value="" style="width:80%;">
               
                      </td>
                 </tr>
               </table>    
           </fieldset>
<?php elseif($cadena==2):?>	
<fieldset>
              <legend><b>Forma de Pago Financiada</b></legend> 
               <table  width="100%">
                 <tr>
                      <td class="textotablamenuform"  width="10%">Cantidad Cuotas</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="cuotas" name="cuotas" required value="" style="width:80%;">
               
                      </td>
					  <td class="textotablamenuform"  width="10%">Tasa Mensual</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="tasa" name="tasa" required value="" style="width:80%;">
               
                      </td>
					  
                 </tr>
               </table>    
           </fieldset>
<?php else:?>
<fieldset>
              <legend><b>Forma de Pago Contado/Financiado</b></legend> 
               <table  width="100%">
                 <tr>
                      <td class="textotablamenuform"  width="10%">Entrega Efectivo</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="efectivo" name="efectivo" required value="" style="width:80%;">
               
                      </td>
					  <td class="textotablamenuform"  width="10%">Entrega Valores</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="valores" name="valores" required value="" style="width:80%;">
               
                      </td>
					  <td class="textotablamenuform"  width="10%">Total</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="total" name="total" required value="" style="width:80%;">
               
                      </td>
                 </tr>
				 <tr>
                      <td class="textotablamenuform"  width="10%">A Financiar</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="financiar" name="financiar" required value="" style="width:80%;">
               
                      </td>
					  <td class="textotablamenuform"  width="10%">Cantidad Cuotas</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="cuotas" name="cuotas" required value="" style="width:80%;">
               
                      </td>
					  <td class="textotablamenuform"  width="10%">Tasa Mensual</td>
                      <td class="textotablamenuform" colspan="2"  width="50%">
                          <input type="text" class="campo_form" autocomplete="on"  id="tasa" name="tasa" required value="" style="width:80%;">
               
                      </td>
					  
                 </tr>
               </table>    
           </fieldset>
<?php endif?>			   
		   
		   
                        
    